<?php
include ('config.php');
$pid=$input->get('pid');
$sql="select * from page WHERE pid='{$pid}'";
$sql_result=$db->query($sql);
$row=$sql_result->fetch_array(MYSQLI_ASSOC);
$tim=date('Y-m-d h:s:i',$row['intime']);
;?>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8" />
    <title><?php echo $set_is['title'];?></title>
    <?php include ('headr.php') ;?>
</head>
<body>
<div class="container">
    <div class="jumbotron">
        <h1><?php echo $set_is['title'];?></h1>
        <p class="lead"><?php echo $set_is['intro'];?></p>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="col-md-3">
            <div class="panel panel-default">
                <div class="panel-heading">作者简介</div>
                <div class="panel-body">
                    这是一个小框，用来介绍作者的
                </div>
            </div>
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading"><?php echo $row['title'] ;?></div>
                <h4><span class="col-md-2"><?php echo $row['aptor'] ;?></span><span class="col-md-10 pull-right"><?php echo $tim ;?></span></h4>
                <div class="panel-body">
                    <p class="lead">
                        <?php echo $row['contact']  ;?>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>